package com.duan.service;

import com.duan.pojo.Books;

import java.util.List;

public interface BookService {

    //增加一个Book
    int addBook(Books book);
    //根据id删除一个Book
    int deleteBookById(int id);
    //更新Book
    int updateBook(Books books);
    //根据id查询,返回一个Book
    Books queryBookById(int id);
    //查询所有书
    List<Books> queryAllBook();
    //查询书籍
    Books queryBookByName(String bookName);
}
